#include "App.h"

float SIMULATION_TIME = 0.f;


App::App()
{
    SIMULATION_TIME = 0.f;
    
    _creature.addMass(v2(100,100) + v2(  0, -20));
    _creature.addMass(v2(100,100) + v2(-20,  20));
    _creature.addMass(v2(100,100) + v2( 20,  20));

    _creature.addSpring(0, 1, 0.1f, 0.99f);
    _creature.addSpring(1, 2, 0.1f, 0.99f);
    _creature.addSpring(2, 0, 0.1f, 0.99f);
}

void App::update()
{
    SIMULATION_TIME += 1.f;
    _creature.update();
}

void App::draw()
{
    _creature.draw();
}



